package ai.peanut.one.api.tread.test2;

public class ThreadCus extends Thread {

    private ProduAndConsume p ;
    public ThreadCus(ProduAndConsume p){
        this.p = p ;
    }
    @Override
    public void run() {
        while(true){
            p.csu();

        }
    }
}
